home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Frameworks / Grant's CGI Framework 1.0b12 / Util / PrefUtil.h < prev    next >
C/C++ Source or Header  |  1995-12-09  |  1KB  |  54 lines

  1. #pragma once
  2. /*****
  3.  *
  4.  *    PrefUtil.h
  5.  *
  6.  *    This is a support file for "Grant's CGI Framework".
  7.  *    Please see the license agreement that accompanies the distribution package
  8.  *    for licensing details.
  9.  *
  10.  *    Copyright ©1995 by Grant Neufeld
  11.  *    grant@acm.com
  12.  *    http://arpp1.carleton.ca/grant/
  13.  *
  14.  *****/
  15.  
  16. /***  CONSTANT DECLARATIONS  ***/
  17.  
  18. #define kPrefResType                'Pref'
  19. #define kPrefFileType                'pref'
  20.  
  21. #define krPrefStartupThreads        0
  22. #define krPrefQuitOnIdle            2
  23. #define krPrefIdleTimeBeforeQuit    4
  24.  
  25.  
  26. /***  TYPE DECLARATIONS  ***/
  27.  
  28. /***  GLOBAL DECLARATIONS  ***/
  29.  
  30. #ifdef __MainSegment__
  31. #define _GLOBAL_    
  32. #else
  33. #define _GLOBAL_    extern
  34. #endif
  35.  
  36. _GLOBAL_    short        gPrefStartupThreads;
  37. _GLOBAL_    Boolean        gPrefQuitOnIdle;
  38. _GLOBAL_    long        gPrefIdleTimeBeforeQuit;
  39.  
  40. #undef _GLOBAL_
  41.  
  42.  
  43. /***  FUNCTION PROTOTYPES  ***/
  44.  
  45.     void    PrefStartup        ( void );
  46.     
  47.     void    PrefSaveItem    ( short, ResType, void *, short );
  48.     OSErr    PrefCreateFile    ( void );
  49.     OSErr    PrefOpenFile    ( void );
  50.     OSErr    PrefCloseFile    ( void );
  51.  
  52.  
  53. /*****  EOF  *****/
  54.